package com.xxd.spring.boot.demo.lihonghai.uti;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
    public static String dateFmt(Date date){
        SimpleDateFormat sd = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sd.format(date);
    }
}
